
<?
//检查是否有权限
//include_once("../../../common/module/checkA.php");

//获取根目录的系统设置文件
include_once("../../../config.php");

$seo['description'] = "";
$seo['keyword']     = "";
$seo['title']       = "友趣UQU";
$data['title']="活动报名";


session_start();

if($_REQUEST['member'])
{
$_SESSION['member']=$_REQUEST['member'];
}
if($_REQUEST['event'])
{
    $_SESSION['event']=$_REQUEST['event'];
}

$_REQUEST['date']=date("Y-m-d H:i:s");

//print_r2($_REQUEST);

//查找当前活动资料，确定报名显示内容
$event_info=select_one_line_all_items($table_prefix."event","nid = '".$_SESSION['event']."'");
$_apply_item=explode(",",$event_info['h5apply_item']);
//var_dump($_apply_item);

//print_r2($_REQUEST);

if($_REQUEST['action']=="applying")
{
    //插入报名数据
    $_insert = insert_date($table_prefix."h5_apply",$_REQUEST);
    $query = do_query($_insert) or die (mysqli_error().$_insert);
    mysqli_close($con);

}



//查看当前用户是否已经报名
$_apply_info=select_one_line_all_items($table_prefix."h5_apply","member_nid = ".$_SESSION['member']."  and event_nid = '".$_SESSION['event']."'");

//print_r2($_apply_info);
//print_r2($_SESSION);

//如果已经报名，就显示报名成功的内容
//$event=select_one_line_all_items($table_prefix."event","nid = ".$_REQUEST['event']."");


?>


